<template>
  <div>页面加载中...</div>
</template>

<script setup lang="ts">
import { useRoute, useRouter } from "vue-router";
const route = useRoute(); //路由数据对象
const router = useRouter(); //路由对象
setTimeout(() => {
  back();
}, 500);
const back = (): void => {
  router.replace((route.params as { path: string }).path);
};
</script>

<style lang="less" scoped></style>
